package com.jiayinlending.jiayindai.activity.login;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.jiayinlending.jiayindai.R;
import com.jiayinlending.jiayindai.activity.MainActivity;
import com.jiayinlending.jiayindai.activity.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SetPasswordActivity extends BaseActivity {

    @Bind(R.id.bt_finish)
    Button btFinish;
    @Bind(R.id.et_PSW1)
    EditText etPSW1;
    @Bind(R.id.et_PSW2)
    EditText etPSW2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
        getToolbarTitle().setText("设置登录密码");
        getSubTitle().setText("");
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_setpassword;
    }

    @OnClick({R.id.et_PSW1, R.id.et_PSW2, R.id.bt_finish})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.et_PSW1:
                break;
            case R.id.et_PSW2:
                break;
            case R.id.bt_finish:
                startActivity(new Intent(SetPasswordActivity.this, MainActivity.class));
                finish();
                break;
        }
    }
}
